Skip to content

Conversation

@malinajirka
Copy link
Contributor

@malinajirka malinajirka commented Sep 8, 2025

Failing CI is expected here since this is a partial migration.

Description

This is part of the migration to POS specific Product Model. There will be many changes and I want to avoid huge PRs. Therefore I created a feature branch - I'll create a PR for each set of changes. The CI won't be able to build this PR, but I personally wouldn't worry about it -> we can ensure everything is green and working as expected when we are merging the feature branch back to trunk.

The Version2 in the name WooPosProductModelVersion2 will eventually be removed.

This PR migrates WooPosProductsViewModel and a couple search related classes.

Images/gif

N/A

  • I have considered if this change warrants release notes and have added them to RELEASE-NOTES.txt if necessary. Use the "[Internal]" label for non-user-facing changes.

@malinajirka malinajirka added this to the 23.3 milestone Sep 8, 2025
@malinajirka malinajirka requested a review from kidinov September 8, 2025 06:26
@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Sep 8, 2025

📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
App Name WooCommerce-Wear Android
Platform⌚️ Wear OS
FlavorJalapeno
Build TypeDebug
Commit41e2881
Direct Downloadwoocommerce-wear-prototype-build-pr14588-41e2881.apk

…omob-1280-woo-poslocal-catalog-use-new-pos-specific-product-model

# Conflicts:
#	WooCommerce/src/main/kotlin/com/woocommerce/android/ui/woopos/common/data/searchbyidentifier/WooPosSearchByIdentifier.kt
#	WooCommerce/src/main/kotlin/com/woocommerce/android/ui/woopos/common/data/searchbyidentifier/WooPosSearchByIdentifierResult.kt
@@ -0,0 +1,31 @@
package com.woocommerce.android.ui.woopos.util
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we name the file with “test” in it to avoid cluttering the main namespace when searching for products-related files in the production code? WooPosProductTestUtil maybe

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, I've done this in the last PR in the chain - 44471ed.

Copy link
Contributor

@kidinov kidinov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! A lot of nice ideas with this model 👏

I left one np - feel free to merge!

@malinajirka malinajirka merged commit f4b5bc3 into feature-branch-for-pos-product-migration Sep 9, 2025
12 of 18 checks passed
@malinajirka malinajirka deleted the issue/woomob-1280-woo-poslocal-catalog-use-new-pos-specific-product-model branch September 9, 2025 06:35
@malinajirka malinajirka mentioned this pull request Sep 10, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants